package com.controller;


import com.entity.Notice;
import com.entity.UsersPersonal;
import com.service.NoticeService;
import com.service.UsersPersonalService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 通知表 前端控制器
 * </p>
 *
 * @author Damon
 * @since 2021-04-26
 */
@CrossOrigin
@RestController
/**//**//**//** 通知显示所有数据 *//**//**//**/
@RequestMapping("/notice")
@ApiOperation(value = "通知", notes = "通知", httpMethod = "GET")
public class NoticeController {
    @Autowired
    private NoticeService noticeService;
    @RequestMapping("/listAll")
    public List<Notice> listAll(){
        List<Notice> list = noticeService.list();
        return list;
    }
}

